{% load i18n vueAdmin_urls %}

{% block object-tools-items %}
  {% if has_add_permission %}
    {% url cl.opts|admin_urlname:'add' as add_url %}
    <a-button type="primary">
      <a href="{% add_preserved_filters add_url is_popup to_field %}">
        {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
      </a>
    </a-button>
  {% endif %}
{% endblock %}